﻿
using UnityEngine;
using UnityEngine.PlayerLoop;

public class AgentHitBox:MonoBehaviour
{
    public GameObject Agent;
    public IDamageable damageable;

    private void Awake()
    {
        damageable = Agent.GetComponent<IDamageable>();
    }

    public void TakeDamage(Vector3 pos,AttackDetails details) 
    {
        
        damageable.TakeDamage(pos, details);
    }
}

